export const optionCarCategory  = [
  { value: 1, text: '普运' },
  { value: 2, text: '冷运' },
];

export const  optionCarStatus  = [
  { value: 1, text: '空闲' },
  { value: 2, text: '忙碌' },
  { value: 3, text: '维修' },
  { value: 4, text: '报废' },
];

//列表分页
export class PageParams {
    public pageIndex = 1;
    public pageSize = 10;
    public setPage(index: number, size?: number) {
      this.pageIndex = index;
      this.pageSize = size || this.pageSize;
    }
  }
  
  export class parts extends PageParams {
    public carId: number;   //车牌号    
    public carNo: string;   //车牌号
    public createTime: string;   //录入日期 yyyy-MM-dd hh:mm:ss
    
    public carCategory: number;   //	车辆类型
    public carStatus: number;       //车辆状态
    public driverName: string;   //司机姓名
    public deadLine: number;   //有效期 yyy-MM-dd
    public oilCardStatus: number;   //油卡状态（1、正常2、停用3、异常）
  }

  export class HybCar {
    constructor(
      public annualInspectionTime?: string,
      public carCategory?: number,
      public carId?: number,
      public carNo?: string,
      public carStatus?: number,
      public carType?: number,
      public chargePersonId?: number,
      public commercialInsurance?: string,
      public createTime?: string,
      public dmlTime?: string,
      public isTrailer?: boolean,
      public load?: string,
      public logisticsCompanyId?: number,
      public carCategoryStr?: string,
      public isTrailerStr?: string,
      public carModelName?: string,
      public logisticsCompanyName?: string,
      public carStatusStr?: string,
    ){}
  }

  export class HybCarAddDto {
    constructor(
      public annualInspectionTime?: string,
      public carCategory?: number,
      public carId?: number,
      public carNo?: string,
      public carStatus?: number,
      public carType?: number,
      public chargePersonId?: number,
      public commercialInsurance?: string,
      public createTime?: string,
      public dmlTime?: string,
      public isTrailer?: boolean,
      public load?: string,
      public logisticsCompanyId?: number,
    ){}
  }

  export class HybCarUserHistoryDto {
    constructor(
      public carUseTime?: string,
      public driverAccount?: string,
      public driverName?: string,
      public finishTime?: string,

    ){}
  }